 /**
  Copyright [2008] [Raghunath N] Licensed under the Apache License, Version
  2.0 (the "License"); you may not use this file except in compliance with the License.
  You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
  Unless required by applicable law or agreed to in writing, software distributed under
  the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
  ANY KIND, either express or implied. See the License for the specific language
  governing permissions and limitations under the License.
 * gwt-greflection
 *
 * Copyright(c) 2008 
 *
 * visumagic@gmail.com
 * 
 *
 *  @author Raghunath N
 *
 */
package com.rn.gwt.client.lang.reflect;

import com.rn.gwt.client.lang.GClass;
import com.rn.gwt.client.lang.annotation.GAnnotation;

public abstract class GField extends GAccessibleObject implements       GMember{

	private String name;
	private String typeName;
	private int modifiers;
	private String signature;
	private GClass clazz;
	private int slot;
	
	public void  init(
            String name,
            String typeName,
            int modifiers,
            int slot,
            String signature
           )
      {
          //this.clazz = declaringClass;
          this.name = name;
          this.typeName = typeName;
          this.modifiers = modifiers;
          this.slot = slot;
          this.signature = signature;
new GField(){

	public GField init(){
		
		return this;
	}
	public Object get(Object obj) {
		
		return null;
	}
	
}.init();
        
      }
	public abstract GField 	init() ;
	public abstract Object 	get(Object obj) ;
	
	public String getName() {
		// TODO Auto-generated method stub
		return name;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public int getModifiers() {
		return modifiers;
	}
	public void setModifiers(int modifiers) {
		this.modifiers = modifiers;
	}
	public String getSignature() {
		return signature;
	}
	public void setSignature(String signature) {
		this.signature = signature;
	}
	public GClass getClazz() {
		return clazz;
	}
	public void setClazz(GClass clazz) {
		this.clazz = clazz;
	}
	public int getSlot() {
		return slot;
	}
	public void setSlot(int slot) {
		this.slot = slot;
	}
	public void setName(String name) {
		this.name = name;
	}

}
